More work on truncation algorithm.