Implemented history API call