Moved queue initialization to the display function.