Modified multiread JNI