Utilities for Scala