Premade functions. Fixes to asm.