Inversed loops, but it's still way too slow >__<..