Improve the assembly loading code.