Added port option to registry.