Added logic to set doScoreProcessing=true at last attempt