get_variables function

Get the variables layer