Updating main resources and data.