Do not wrap around the end of the file