Improve online update function.