Finish the skeleton for metric calculation -- MI metric finished.