Restructuring the code: Rewrote slicer, now to fix flip sign