Added support for text formatting