Modifying templates