Implemented some of the processing stuff.