Added recursive logging