Calculations and saving done.