Deeper interfaces for panMat, plus a few changes.