Get saving out of the loop