Add a better way of updating objects