Draft implementation of slicing file