Change function name to update