Work on auto-logout.