Add register allocation