Added optimal code for actual concurrency