Cleaned up the logger a bit.