Worked on modifying the material edit system to work with templates