Updating MRI routines so that they can run real data.