Need to cast environment port to int