Adding debug logging.
EO