Adding in snippets functionality