Added switching animations.