Debugging sweep()