Register working

Managed to get the register working