Change `lines` to `each_line` to suppress depreciation warning