Fixed AOL restore. Rewrote the algorithm.