Added flag for signaling when animation is in progress.