Small change to animate method. No functional changes.