Getting the saving system to work with templates