Add new getValue method