Changed default value of N.
Commented out debug code.