Significantly cleaned up the code, and added comments for anyone interested. The logic has not changed at all, but it's now written in a more modern and more readable way than what was used in the original implementation. There is one small behavior change that should make it better: earlier the script would only run 1 second after it was loaded, now it runs immediately so there's even less chance for you to see these huge skip indicators.