Fixed #4 - undefined variable 'port'.