Updated port to use environment port