Laid groundwork for multithreading