Updated to return a UpdateResult object to front-end