Add support for port getter/setter.