Added missing JNI code. Tested. Everything works.