Added beginnings of modularizing the assembly code