Some common utils for Scala