New version for threading/forking.