Added history logging