Added wait
Merge pull request #39 from AndreiH/add_wait_pass_mismatch

Added wait