Add retries to main write and get ops