Changed the way session storage parameters are passed.