Added generation of snippetID