Prototype code for panMat/panPhy