Added another optimization to attempt_ext