Working on more efficient last line(s) method