Separated API call and laid groundwork for in-place loading of results