Added function for updating material information