Differentiate branches in the trigger hook