Consider using a loop.