ratchet@ I'm pretty sure, that there is no way to keep it flexible without modules, as this template doesn't belong to any fixed genre. If you want to keep it fast with one loop, why don't you organize it your own way? You'll need to rewrite it, to fit your project anyway, as there won't be a code snippet (ever), which will be 100 % optimized and will fit your needs for 100 %.