Template comparision implemented