Added OnReconnected logic.