Debug version part 2

Debug version part 2 (deeper logging in loop)