Dynamic Values + Optimization

Added functionality to dynamically grab the highest value and stop the
animation loop when it’s done.