Redesigned inputBufer to use generic queue to increse parse speed x2