Add and implement check_mode method