Added new centering method for vertical centering.