Minor update to getLastXLines