Created a global pointer to track the current search position within the FIFO