Added change flag when updating the session.