Changed loop termination exit(mistakenly written) to the correct "break", line 277.