Improved the structure and flow of -transitionAnimated: