Added skeleton for multithreading