Added a private function to decode a single value