Implement functions to get values from the stack.