Add threading to parser.