Fixed a silly backwards pair insertion.
Span additions seem to be working correctly, removals still have some issues.