Extracts a variable.