Added registerMatProp, but it’s seriously ugly.