Modified to be only one task when you plug a new USB device