Misc scripts dealing with ASM