Added multithreading to the initial partitioning and fixed the timer