Moved library initialisation.