You need this even if device_id is defined.