Fixed the animation lag and improved performance by loading the table outside of the loop (for now).