Simplified the Processing sketch