Revise codes for computing MFVs