That code is doing some very weird shyte
It does stop the movie but then you get the output popup in test movie mode scrolling through heaps of numbers- all over the place - I can’t even see a pattern to it. So I tried changing the number in your code from 20 to 200 and it did the same thing again just diff numbers.