Make queue size configurable