Add JNI functions.