Fleshing out the doc parsing job.