Added a setRawData function