Store Material instead of materialid