Added code for reading in data