Added some code for port selection