Improve history log