Simple code to read raw data