Added set_variable on API.