adds maximum queue length