Fixed a bunch of things. Subscribe, publish and poll