Add automatic service_mode selection for CF