Add and refine debug logs