Added support for horizontal alignment