First perform action, then add to history