Use multiple queues instead of a single queue to correctly prioritize and compare triggers.