Add retry machenism if get non-200 response code
Optimize script and email report