Add basic multithreading.