Add comments and fix an issue in Sweep job.