Encoder save best curve done (now need option on preferences)