Working on the JNI classes