Updated the sessions helper