Rewrote the auto save manager