Added set_variable to main.