Improved history.rb yet again