Prettier loops and nicer code

polypompholyx