Updated concurrency code.