Add record update function.