State now uses a table for storing its functions/stuff