Implement MgRecordShapes.