Allows port to be passed in