Add a level to debug.
Add methods to find cutting segents properly.