Removes duplicate entries from output