reads N from queue.