Allow runtime specification of port