Capturing recent changes before redoing with Samuel's sample code