First hack at MF calculation.