Added data sources and loops for reading in data.