Sets up some structure for the pan job.
BROKEN CODE. Begins implementing the pan job.
(Mostly) fixes the PanJob.