The formatter needs to store data in a proper way.
One way to do it is to implement an SQLite database with tables for self, kingdoms and others.
Would be beautiful to use a pauseable thread for the database interface.