Added logic to allow for custom reports.