Fixed text alignment, cleaned up how alignment works.