Added automatic saving and restoring of sessions
Added automatic saving and restoring of sessions