Add mode check.