Moving the pool manager into the consumer
Fixing encoding / decoding issues