Low level C interface to the monarch library.