Save end
Contributed by : Jérôme Jesse