Remove to_i to stop infinite loop