Adding debug logs