Queue Manager code