Adding debug trace