Refactored pnSubscribe to more efficiently build subscribe config.