Debug and add debugging trace
Add debug traces, debug