Adding retry in infect script