Nebula Productions #1 Thanks, but your code only works if it's not in a function. Unfortunately I must use a function to keep the code "readeable" (so that the main loop consists of as less lines/words as possible).