Creation of new threads works