Added AMD module loading support.