Added support for concurrency=thread

Need deeper testing