Helper for keeping track of where we've been.