Added support for getting and setting the permanent option flags.