Controlling when a trigger is called