Added debugrec and change debug to be non-recursive by default