Added history logging everywhere