Changed code to allow port to be specified.