Change snapshot function