Updated to use the asynchronous library loader.