Use #ifdefs to separate debug code