Finished update function. It needs to be redone, more in the manner of the one in DefectTracker, but it should work for now.