Fix the waiting queue behavior.
Add new simulation mode for pure performance testing