Simplified code by eliminating need for dedicated thread to move entries from delayed queue to main queue.