Initial debug mode

Not working yet