Adding support for threads and inproc 'pipes'