Added rough cursor centering.