Added dual_mode