Add autoUpgrade coroutine (fixes #727)