Added history File generation