Changed port to look for environment variables.