Added constructor with port arguement.