Refined log
Added deduplication