Generating the reports on the fly