Added check to ensure only one instance of update running