Added the auto-reconnect feature for the modem.