History functional added