Added preparseMaterialProperties.