Fixed newlines & line counting