Created C/Fortran wrappers for serialization