Loop for registers