POV variables don't persist between frames.
When you start parsing frame 2, all the variables are undefined. They
don't have the values that that they ended up with at the end of frame
1. You either have to re-calculate the values from scratch in each
frame, or write the calculated values to a file and read them back in
subsequent frames.
--
Mike Williams
Gentleman of Leisure