Added queue size limit