Removed some excess code in readData.