Added data retrieval to file - work in progress