Moved DecodeData back to ReadRawData