Working on issues related to multithreading