Add some logging to get a better understanding what's wrong