Knowing when to persist and when to quit