Simplified the processing sketch.