Working autoslicer :lock: most code