JNI bindings for tracking