Got template saving to work