Dealing with while(true).