Can you add some documentation why we need to retrieve all the libraries first?