Use Scala api
Merge pull request #143 from akkie/master

Use Scala api