Saves and loads at the right time