Put waitCondition()'s in if statements