Better accessing of previous run data and correctly handeling the tail and head of the job list