Move report generation into separate script so you can use tee.