Utilities in Scala