Added unloadUnreferencedMaterials