Add getValue method to utilities.