Added logging traces for search