Use size_t instead of int in FIFO
Implemented quota-limited configuration