Much faster error calculation, but found a bug in randProject that hasn't been fixed yet.