Setup update function