This works - bails out intermittently, see console logs