Added a session handler