Implemented recursive loading of libraries.