Adding retry to deploy