Changed coordinate represenation of objects to midpoint coordinates