Cleaned up debugging.
Cleaned up logging.