Unfinished work on smarter ASM code