Reworked symbol table to have function levels.