Adds a trigger method