optimize function to show report - refs BT#8296
Merge pull request #44 from DeEvo/8296

8296