Another quick comment on this line, please - something like "step backwards to a non-blank line". It just took me a minute to work it out.