-Add thread version, still using fork