Moved LINES_TO_SHOW to a variable, so it's easier to change it.

Fixed an issue with integer offsets