Using concurrent.futures for creating threads.
changes.