Fixed triggering algorithm.