Changed port from being hardcoded to 3000 to using environment variables when possible.