Adds class method for getting value hash