Adding some logging so I can see what's going on.