Added readAssembly function