Resolves #2 Data fetching routine