Fixed some logging stuff.