Minor refactor in the process controller.