Add Material interface

Fix stupid bug