Finally got rid of all asm globals \o/