Beginning of assembly optimizations