Adding JNI