Add cycle loop for output errors.