Added automatic port number var