Added hooks for visualization logging.