Minor helper function for scala.
More API improvements.