Add support for feeding tokens back to main thread, breaks main-thread-based parsing for now