Add some logging code to report what the program is doing