Changed to separate regs and completed key mem pre testing.