TODO: Session class for mulitple threads