Majordomo implementation in C
