Connecting to queue