Changed params of OnReportPre forward to function args instead of global variable.