Added when to trigger.