Added pub/sub support, need to continue work on packet spec.