Added parameter to inject cached data in place of API request.