Updating library state