by rlmumford: Updated logging stuff.