Backport to our Scala Version.