That wouldn't work on a slow internet connection, since it would likely take longer than 1 second for the model to be in ready status. I will use a more robust solution when I get round to it.