Monk implemented in C.