Moved pattern to separate template