Rehashing system for less OOP, more modularity.