Few Scala utils...