Scala script changes