Debugging memory problems and cut