Added a version in Scala in the hope for it to be faster.