Hooking up some logging