pthreads work as intended. About to try and make the number of threads dynamic based on depth.