Fixes problem with parser not being thread safe