Make Ruby and Scala implementations a little more comparable.