Removed logging code that caused slowdown.

Further, deactivated rest of the logging.