Improved animation management.