Successful attempt at session management :)