How ASM works