Implement Decode