Changed copy to template