Tiny simplification to Scala sample.