Added in text alignment functionality