Added auto centering.