Fixed #1 where port variable was not used.