Errr... I didn't mean that fixes the problem. I just didn't want somebody to look at my code and think that it doesn't print the numbers 1-1000 because I was printing the wrong variable. It still doesn't do what I want. It only prints the first line and no more.