Added dynamic loading and unloading.