Added MID processing