Added optimization before saving.
Corrected license.