wait procedure now has a default delay value of 1.
Update demo.