We probably should clean up the C implementation of EMOS to keep only what we need. This would help us maintain this part of the source code.