Add function to run the processor.