Reflect the modification of the original snippet function