Updated function snip