Code designed to be used with MRIMPACT data