Millis (); won't work properly

It definitely does, in this case, because it impacts the ability of helpers to read your code, and find any problems. Technically, it isn't directly responsible for the problem.

Someone made a suggestion, you replied with a question about what I presume is updated code. In order to consider it, I have to read the code.