Add a clear function to variables_to_options and make variable data private.