Renamed decode to decodeOne, decodeD to decode. Same for encode.