Removed debugging code for port assignment