Updated to receive RAW data