Add initial template logic