Added support for OnReportPre.