Completes update functionality