Fix trigger creation, add debug option.