replace thread.sleep with a prober