Added a mechanism by which processing is automatically done several
times if certain errors occurr.