Working on cinit function.
Fixed cinit issues.