Reporting scripts as functions