Added Previous millis for maintian connection