Created helper for computing snippet id