Callbacks and rearrange of ASM