Added more debug logs.