Working on session manager