Fixed up some logging