added history stuff.