Added some concurrency primitives.