Added ability to debug calls to API in app