Allow class callbacks for report functions
Merge pull request #2981 from maxrice/report-functions-patch

Allow class callbacks for report functions