Added thread pooling for MPmap.