0.6.2 Rewrote _apply_sessions