Add debug print function

Not actually used yet