Updated for Processing 2.0 compatibility.