Rewrote the sessions module to be...better.