RF: compare_* functions renamed to gen_*