Added ruby else and retry