Updating permissions and libraries