Add support to specify primary node.
* Fix typos