Replacing thread sleep with a prober and increasing timeout