Adding debug traces