Scala mode