Added easier methods for extracting the value of a variable.