Changed the interface a bit, more templates, sorry. Gonna write a better reduction function in a minute, then work on the whole construction of the table