Hook directly to Scala API