Moving code out of home.asm