Move analysis to session model.