If you never use `animation_length_s` then why are you creating it?  Get rid of that variable.