Same thing about hard-coding the size. Though you use the particular thresholds based on the 1/2/3 chunks in this method. Could you instead make some member variables that are the "warning" levels for the FIFO?