Made the determination of the center point a little smarter.