Added consideration of size of queue item (which is the entire point of the generic queue library... Derp.)