IO is slow in Ruby.