Implemented basic getValue method.