Added setMaterial