Implement multithreading in module handling