Rewrote to get data in chunks. Seems to work!!!