Looking at this again. Is your comment about line 134? The `tokenFunc` variable gets used outside of the if statement, which is why I didn't declare them in the if's initialization statement.