Added option to enable debug logging.