Added average over intervals section. -spk