EOF and some looking