Lots of work, including session save and restore.