Add queue data structure and reorganize.