Added init function definitions for cnj and ima.