Added debug event and options.