Update trigger logic