Add trail segment midpoint property.
Performance tweaks.