Finshed debuging for job 1 - 4. Implemented ordering using new api. Output format is a total mess.