Add basic retry mechanism