Added functions for report generation