Updating dependency tree