Making the config loader function more asynchronously.