Template separation