Why not just make this a for-loop?