Scala translation.