Modified all three scripts for MRI testing.