Laid groundwork for API