Added a sample, so it is easier to see how this stuff works.
Also made sure the callbacks with the results are posted to the UI
thread.
Improved FPS slightly.