Better multi-threaded usage example. Fixes issue #2.