I plead ignorance - you had "previous Milllis " which I did not bother to figure out where it was declared and defined / used. I figured when the "currentMillis" is taken care off then take a look at "previousMillis" .
One "baby step" at a time. Hope to see the "final version " soon.