Port as optional input.