Built a queue and implemented some instructions