CAM_UNPLUGGED must be here instead of hardcoded "2".