Add NativeDispatcher
Improve JNI