Implment the JNI