Update ex2 and ex2_reg mainfiles