Added increment to update function.