* Configuration of port (credits to Dan Nessett)