Revert "Using a loop."

This reverts commit 0e8466bb85bb306f30065ee71002c704afa1e764.