Refactor reporting
Return changed number of lines only if there is a change