Implement an option to control threading