Adding jni bindings