Added support for updating resources