Added shape pooling.