Works correctly with $lf instead of $crlf