Second version of 2dff457a7c, now without breaking negative deltas. Thanks to @OmarEmaraDev for the suggestion.
2dff457a7c