Needed code for the repeated measures changes.