Working on template rows