Implement value decoding