Refactor processor

Refactored process_job method.