Added a way to add materials