Use standard loop to avoid recursion error.