Added support for format on save.