Implemented branches, mem_mode_ctrl.