Shift logic to ASM- fixed bugs