Adding the ability to specify ports for publishing