Made the centering work