Idea for merging queues