Moved to new API and buildable with maven.