I added some logging stuff