API for materials.