Adds new snippet.