Connect queue with rest