Added comments to midpoint