Generate functions to get or set global options
