Added an option for textelements