Removed old logging, added new logging for debugging.