I added some logging code