Improved the animation performance.