Tweaks to the processing code