Delay adjustements and added a retry param, default 5