Making the repeat loops a bit more cleaner