Manage pools

Thrift generated code.