Removed the anonymous function of append history