Modify the material parsing