Added in vertical and horizontal centering.