Adding some logging to debug dup entries issue