Worked on fortran factory method callable from C