Logging some stuff to get to the bottom of things.