Implemented the thread call. Fixes #31, will fix issue #11 once docs have been written.