Don't use a global session object, instead pass it around