Gave animationDuration an initial value of 0 to avoid warning in newer Xcode versions.