Added port passed as 3rd parameter