Added code for MidDis noise.