Adding builder and JNI code.