Adding a debug option to print api call urls.