Simpler assignment of port