Worked on template loading