Add functionality to create a session