Adding #if debug

Thought I did this yesterday