Get rid of pthread_join()