-Change all forking to threading