Reimplement adding/removnig from the queue.