Updated MRI code
Updated MRI code