Better logging in loops.