Fix zooming
Write estimateDataGaps (compiled but not tested)