Updated failedattempts script