wait_for should be a float