Added Material Extensions and updated code appropriately.