Add code to fetch data over multiple intervals in one call