Created constructor that allows port as single argument.