Modify tutorial to correctly handle early polylinecomplete events.