Added an optimization to attempt_ext