Renamed 'priority' to 'jobId' and assorted minor changes