Rewritten the whole thing based on new Node abstraction, other code is half the size now
Made core_counts use new localization class