Updating trigger algorithm
kazu