Changed schedling of update function