Implemented history data write on link attach/de-attach events.