Add 'queuestat', 'queuecap', and 'queueulim'
Added maximum capacity sanity check.