Use loopEnd even if the end is the EOF