Added support for snippets.