Changed to using typeof resp.items