Added a join session function
Adapted to the new join function in the session class.