Redesigned inputbuffer to use generic queue to increase parse speed x2