Added logs to API wrapper