Another attempt at a C-port of MML