Implement Danilo's new slicing with some rather cosmetic corrections.