Rajesh/jni flavour

Working code.