Started working on functions for automatic division into multiple tables
Might not be really useful.