Add retrieve_from_nexus library function.