[Dev] First version seemingly working for the new slice and dice algorithm.