Core classes for the pooling library.