Bug fix on conditional quit
Bug fix on conditional quit
Bug fix on conditional quit
Abstracted waiting for condition
Abstracted condition waiting works