Today was spent tidying up code mostly - removing redundant code and debug messages.
I am also looking for the best method to trigger the PII summary reporting. Ideally I'd like it to be automatically run when the MitM daemon is stopped. Unfortunately I wasn't able to find an event in the code which captures this.
Another option is to make the summary reporting function accessible from the command line, and call it from the main application shell script method after the service is stopped.