Implementing center positioning.