Changes

Changes to the way the reports are generated, including some processing.
Probably no major performance improvements though.