Added material functionality