Started on rewriting slicing functionality