Here's the actual changes to make it work with Processing2