Redirection added to createNewThread