Made Debug mode optional

it saves RAM (I guess)