Fixed a segmentation fault.
Added a dummy thread which can be used for asynchronous acquisition.