Updated the snippet copying