Removing asm globals usage