Update: implement History distinct method