Finished first version of MIF metric.