Remove need for total in updating references