Init registers correctly