Changed localStorage refs to sessionStorage.