Added MaterialManager class.