Working version of create trigger with with right configuration