Able to change material type. Also fixed missing semicolon