Add atomic increment to element wrapper and retry edits
Remove last vestiges of PHP