Modify to generate and send reports