Added material checking to verifyer.