Scala backend