Reworked the process code.