Probably going to regret this or something, but whatever. You removed the END from the file, which was used for a function. Restore the file to what it was. Remove the while loop and replace it with your whatever code.