25 times faster, more idiomatic Ruby.