Add more api for queue.