Adding some of the update resource magically logic.