Rewrote finding of firstSession