Generate pubs and subs in the node.