See code example posted at SketchUcation: http://sketchucation.com/forums/viewtopic.php?f=180&t=64428