amended job to work, added more task processing logic