Oops, two lines moved out of my snapshot script should have been