added wait_for method to Minion