Unless someone can spot obvious perf issues, this is just super slow