Added support for center positioning