First version with a session.