Example code from presentation on DevFest 2013 Vienna