Added sessionStorage logic.