Update MFI function

removed some Debug code