Add max queue size limit