Added getValue method