Modified decoding implementation.