Now using typed arrays for registers