Add interaction between Stats and API class so that API calls are formatted by Stats and then control is handed back to API.