Added call to done
Readded check for ip in res.body