Readded MLHistory and improved chained calculations