Added ability to set text with animating flag