Change retry_if_fails to _retry_on_fail