Add createReport script method and supporting functionality.