Bug fix
Bug fix for counting curve numbers
Debugging utility.