Fixed the API. Now tested to work with the Java Frontend