Need to wait for the animation to complete