Added additional debug logs.