addHistory working with checks for duplicates