Rewrote the reading and writing save positions to settings file