Added actual data reading for graphs.