Added multithreading class