Changed the name lastLine to lastWrittenLine.