Update to do code