waiting time method almost complete. Works almost always.