Remove pthreads and run single threaded